clk: stm32f7: add static for configure_clocks()
authorPatrice Chotard <[email protected]>
Tue, 18 Jul 2017 07:29:03 +0000 (09:29 +0200)
committerTom Rini <[email protected]>
Wed, 26 Jul 2017 15:26:53 +0000 (11:26 -0400)
Also remove its declaration from stm32.h which
is no more needed.

Signed-off-by: Patrice Chotard <[email protected]>
Acked-by: Vikas MANOCHA <[email protected]>
arch/arm/include/asm/arch-stm32f7/stm32.h
drivers/clk/clk_stm32f7.c

index 14e3398768a0e58d79d4d75471d256224c382085..d4c834eeddbb99671fa7d5c1116ae9608fa08d2a 100644 (file)
@@ -114,7 +114,6 @@ struct stm32_pwr_regs {
 };
 #define STM32_PWR              ((struct stm32_pwr_regs *)PWR_BASE)
 
-int configure_clocks(void);
 unsigned long clock_get(enum clock clck);
 void stm32_flash_latency_cfg(int latency);
 
index fcdc3c052bd80b29e3846b89197b65170c4ed916..aff8ad3bc72563e4d10db347021b868c43363abe 100644 (file)
@@ -104,7 +104,7 @@ struct pll_psc sys_pll_psc = {
 #endif
 #endif
 
-int configure_clocks(void)
+static int configure_clocks(void)
 {
        /* Reset RCC configuration */
        setbits_le32(&STM32_RCC->cr, RCC_CR_HSION);